#!/usr/bin/env bash


# This file contains the global configuration for the quarto configuration
#
# The configuration is used both as a local runtime version of Quarto for developers
# but it also used when packaging (e.g. run configure.sh, then prepare-dist.sh, then package.sh)
# deno_dom should match release at https://github.com/b-fuze/deno-dom/releases

# NB: When these are updated, you must also update the versions
# in src/command/check/check.ts

# Binary dependencies
export DENO=v2.4.5
# TODO figure out where 0.1.41 apple silicon libs are available
export DENO_DOM=v0.1.41-alpha-artifacts
export PANDOC=3.6.3
export DARTSASS=1.87.0
export ESBUILD=0.25.10
export TYPST=0.13.0


# NB: we can't put comments in the same line as export statements because it
# messes up our windows setup

# Bootstrap dependencies from bslib
# (use commit hash from bslib repo)

# 0.5.1 + consolidated components
export BOOTSTRAP=ad946cafdbf1c91cfd714cb39948bb203ae66e66
export HTMLTOOLS=0.5.7
export BOOTSTRAP_FONT=1.13.1
export BOOTSWATCH=5.3.1

# javascript HTML dependencies
export ANCHOR_JS=5.0.0
export POPPER_JS=2.11.7
export CLIPBOARD_JS=2.0.11
export TIPPY_JS=6.3.7
export PDF_JS=2.8.335
export REVEAL_JS=5.1.0
export REVEAL_JS_MENU=2.1.0
# unrelease version needed for fixes with Reveal.js 5
# https://github.com/rajgoel/reveal.js-plugins/pull/180
# https://github.com/rajgoel/reveal.js-plugins/pull/184
export REVEAL_JS_CHALKBOARD=217142176341e24628db2908cae38221ef13d639
export REVEAL_JS_PDFEXPORT=2.0.1
export LIST_JS=2.3.1
export DAY_JS=1.11.7
export ZENSCROLL_JS=4.0.2
export GITHUB_MARKDOWN_CSS=5.2.0
export GLIGHTBOX_JS=3.2.0
export DATATABLES_CONFIG=bs5/jszip-3.10.1/dt-1.13.8/b-2.4.2/b-html5-2.4.2/b-print-2.4.2/kt-2.11.0/r-2.5.0
export PDF_MAKE=0.2.7

# javascript search dependencies
export AUTOCOMPLETE_JS=1.19.1
export FUSE_JS=6.6.2
export ALGOLIA_SEARCH_JS=4.5.1
export ALGOLIA_SEARCH_INSIGHTS_JS=2.0.3


# Quarto Info Version
export QUARTO_VERSION=1.9
export QUARTO_NAME=Quarto

# Folder names. These are not the same as paths (those variable names end in _PATH).
#     See set_package_paths .sh and .bat for these in context of full paths.
#     See the configure .sh and .cmd scripts for overrides.
export QUARTO_PACKAGE_DIR=package
export QUARTO_DIST_DIR=dist
export QUARTO_SHARE_DIR=share
export QUARTO_BIN_DIR=bin
export QUARTO_SRC_DIR=src
export QUARTO_OUT_DIR=out

# Quarto MSI upgrade code
# Altering this will change upgrade behavior of the windows installer
# so be sure you know what you're doing before you change it
# We use a dynamic product ID for every build (forcing a major upgrade)
# so this upgrade code is the only thing that connects different versions
# of this installed product (and permits upgrades).
export QUARTO_MSI_UPGRADE_CODE=98fb2e98-96b0-46e1-a6fd-94171233d11b
